package com.lbh.cloudgallery.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbh.cloudgallery.entity.vo.SearchProductVo;
import com.xxx.common.utils.PageUtils;
import com.lbh.cloudgallery.entity.ProductEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author 廖碧涵
 * @email lbh@qq.com
 * @date 2021-02-25 22:47:51
 */
public interface ProductService extends IService<ProductEntity> {
    PageUtils queryPage(Map<String, Object> params);

    List<ProductEntity> searchProduct(SearchProductVo searchProductVo);

    void deleteStock(Integer productId, Integer count);

    String createFromCart(Integer productId, Integer count);

    //Boolean addtoStock(Long productId, Integer count);
}

